package com.msmall.community.admin.action;

import com.msmall.base.action.HTMLBaseAction;
import com.msmall.community.admin.service.MemoryManager;

// 刷新内存
public class MemoryAction extends HTMLBaseAction{

	private static final long serialVersionUID = -2763301282745495278L;

	private int type; // 刷新哪个内存
	
	private MemoryManager memoryManager;
	
	public String execute(){
		return SUCCESS;
	}
	
	public String refresh(){
		try {
			memoryManager.refresh(type);
		} catch (Exception e) {
		}
		return SUCCESS;
	}
	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public void setMemoryManager(MemoryManager memoryManager) {
		this.memoryManager = memoryManager;
	}
}
